package com.lemon.exam.controller;

import com.lemon.exam.common.annotation.Web;
import com.lemon.exam.common.crud.BaseController;
import com.lemon.exam.entity.po.UserPO;
import com.lemon.exam.entity.vo.RoleClassJobVO;
import com.lemon.exam.service.IUserService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

/**
 * 用户表 控制器
 *
 * @author Lemon
 * @since 2025/03/24 10:14:39
 */
@RestController
@RequestMapping("user")
@Tag(name = "用户管理", description = "用户表 API")
@Web(childUri = "user", childComponent = "system/User.vue")
public class UserController extends BaseController<UserPO, Long, IUserService> {
    /**
     * 当点击详情，编辑，修改时，查询
     *
     * @return
     */
    @GetMapping("findSelect")
    @Operation(summary = "查询选择信息", description = "角色-班级-职位")
    public Mono<RoleClassJobVO> findSelect() {
        return service.findSelect();
    }
}
